#ifndef ICONWORKER_H
#define ICONWORKER_H

#include <QObject>

class IconManager;
class IconWorker : public QObject {
    Q_OBJECT

public:
    explicit IconWorker(IconManager *manager);

    void slotRequestMap(QVariantMap map);
    void slotRequestList(QVariantList list);

public slots:
    void slotRequest(QString url, QString objectName);
    void slotRequestJson(QString json);

public:
    QString configDir();
    QString appConfigDir();
    QString cacheDir();
    QString appCacheDir();
    QPixmap getAppCachePixmap(const QString &appId);
    void setAppCachePixmap(const QString &appId, QPixmap pixmap);

private:
    IconManager *manager;
};

#endif // ICONWORKER_H
